﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.WareHouse.Domain
{
    /// <summary>
    /// 仓库基础信息实体
    /// </summary>
    [SugarTable("WarehouseModel", TableDescription = "仓库基础信息表")]
    public class  WarehouseModel : BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true, ColumnDescription = "")]
        public long WHId { get; set; }

        /// <summary>
        /// 仓库编号
        /// </summary>
        [Description("仓库编号")]
        [Required(ErrorMessage = "仓库编号不能为空！")]
        public string Warehouseid { get; set; }

        /// <summary>
        /// 仓库名称
        /// </summary>
        [Description("仓库名称")]
        [Required(ErrorMessage = "仓库名称不能为空！")]
        public string Warehousename { get; set; }

        /// <summary>
        /// 仓库类型
        /// </summary>
        [Description("仓库类型")]
        [Required(ErrorMessage = "仓库类型不能为空！")]
        public string WHTypeId { get; set; }

        /// <summary>
        /// 仓管员
        /// </summary>
        [Description("仓管员")]
        [Required(ErrorMessage = "仓管员不能为空！")]
        public string Warehouseempid { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "地址")]
        public string? Address { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "描述")]
        public string? Memo { get; set; }

       
    }
}
